<script setup lang="ts">
import ByEmpty from "../ui/ByEmpty.vue";
import BySpin from "../ui/BySpin.vue";

defineProps<{
  loading?: boolean;
  isEmpty?: boolean;

  emptyTitle?: string;
}>();
</script>

<template>
  <view>
    <view class="p-6" v-show="isEmpty">
      <ByEmpty :title="emptyTitle" />
    </view>

    <slot />
    <BySpin v-show="loading" />
  </view>
</template>
